/**
 * @file com.demon.esport.admin.common.response
 * @CopyRight (C) www.10-game.com
 * @author jeffreychan
 * @email mebeyfeng@qq.com
 * @date 2018/10/18 23:08
 */

package com.demon.esport.admin.common.response;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: jeffreychan
 * @Date: 2018/10/18 23:08
 * @Description: 返回值包含对象.
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ObjectResponse<E> extends Response {

    private E result;

    @Builder
    public ObjectResponse(Integer code, String message, Long timestamp, E result) {
        super(code, message, timestamp);
        this.result = result;
    }
}
